﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace brevis.Nop.SDK.Entity
{
    [Serializable]
    public class NopReportConfiguration
    {

        /// <summary>
        /// Report definition file URL (to .rdlc-file)
        /// </summary>
        [XmlAttribute("ReportPath")]
        public string ReportPath { get; set; }

        /// <summary>
        /// List of checker types
        /// </summary>
        [XmlArray("Checks")]
        [XmlArrayItem("Check")]
        public List<NopReportCheck> Check { get; set; }

        /// <summary>
        /// List of in report referenced parameters
        /// </summary>
        [XmlArray("Parameters")]
        [XmlArrayItem("Parameter")]
        public List<NopReportDataGetter> Parameter { get; set; }

        /// <summary>
        /// List of in report referenced datasets
        /// </summary>
        [XmlArray("DataSets")]
        [XmlArrayItem("DataSet")]
        public List<NopReportDataGetter> DataSet { get; set; }
    }
}
